all files / MathHelper/ math-helper.service.ts

100% Statements 9/9
100% Branches 0/0
100% Functions 3/3
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13       20×     20×  
import { Injectable } from '@angular/core';
 
@Injectable()
export class MathHelper {
 
    random(): number {
        return Math.random();
    }
 
    floor(val: number): number {
        return Math.floor(val);
    }
}